<?
	session_start();
	if ($_SESSION["uname"] <> "") {
		if (session_is_registered("uname")) {
			if ($_SESSION["uname"] == "admin")
			{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
</head>
<link rel="stylesheet" type="text/css" href="../style.css">
<script language="javascript">

function CreateChild(oParentNode,sTag)
{
	var oNode = document.createElement(sTag);
	oParentNode.appendChild(oNode);
	return oNode;
}

function master()
{
	var node = document.getElementById("master");
	node.innerHTML = "";
	mn3 = CreateChild(node,'div');
	mn3.innerHTML = "<div class='sub-menu-text'><a  href='news/newsForm.php' target='mainFrame'  >> Data Berita</a></div>";
	mn4 = CreateChild(node,'div');
	mn4.innerHTML = "<div class='sub-menu-text'><a  href='link/linkForm.php' target='mainFrame'  >> Data Link Lain</a></div>";
	mn5 = CreateChild(node,'div');
	mn5.innerHTML = "<div class='sub-menu-text'><a  href='event/eventForm.php' target='mainFrame'  >> Data Kegiatan</a></div>";
	mn6 = CreateChild(node,'div');
	mn6.innerHTML = "<div class='sub-menu-text'><a  href='poling/polingForm.php' target='mainFrame'  >> Data Poling</a></div>";
	mn7 = CreateChild(node,'div');
	mn7.innerHTML = "<div class='sub-menu-text'><a  href='poling_item/poling_itemForm.php' target='mainFrame'  >> Data Poling Item</a></div>";
	mn8 = CreateChild(node,'div');
	mn8.innerHTML = "<div class='sub-menu-text'><a  href='profil/profilForm.php' target='mainFrame'  >> Data Profil Pengurus</a></div>";
}
</script>
<body>
					<div class="menu">
						<div class="text"><a class="" href="" onClick="master(); return false;">Master</a></div>
					</div>
					<span id="master"></span>
					<span id="pusda"></span>
					<div class="menu">
						<div class="text"><a class="" href="logout.php" target="_parent">Logout</a></div>
					</div>

</body>
</html>
<?
			} else
			header("location: index.php");
		} else
		header("location: index.php");
	} else
	header("location: index.php");
?>